package routes

import (
	"github.com/gin-gonic/gin"
	"library-system/controllers"
)

func RegisterBookRoutes(privateGroup *gin.RouterGroup) {
	bookController := controllers.BookController{}

	// 书籍组路由
	bookGroup := privateGroup.Group("/books")
	{
		bookGroup.GET("", bookController.GetBooks)
		bookGroup.POST("", bookController.CreateBook)
		bookGroup.PUT("/:id", bookController.UpdateBook)
		bookGroup.DELETE("/:id", bookController.DeleteBook)
	}
}
